package com.imooc.news_manager_project.dto;

import com.imooc.news_manager_project.common.validator.SaveValidator;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class LoginDTO {

    @NotBlank(message = "用户名不能为空", groups = {SaveValidator.class})
    private String name;
    @NotBlank(message = "密码不能为空", groups = {SaveValidator.class})
    private String password;
}
